<style type="text/css">
	body {
		background: url(img/login.png)  no-repeat center center !important;background-size: cover;
	}
</style>
<p class="welcome">欢迎用户：<span id="userId">{{userLogin}}</span><a href="###" id="bindingout" style="margin-left: 50px;color: white;">退出</a></p>

<!--<img src="img/logo1.png" alt="" id="logo" />-->
<div id="chooseLevel" class="allCenter ">
	<h3>选择通道进入系统</h3>
	<div class="wrap" style="width: 400px;margin: 69px auto;">
		<div class="layui-row">
			<div class="layui-col-md6 layui-col-xs6">
				<img src="img/Selectionchannel_Agreatman.png" />
				<h4>我是大牛</h4>
				<p>轻松赚钱来找我吧</p>
				<div class="chooseYes choose">
					<img src="img/gou.png" />
				</div>
			</div>
			<div class="layui-col-md6 layui-col-xs6">
				<img src="img/Selectionchannel_Follower.png" />
				<h4>我是跟随者</h4>
				<p>寻找带我赚钱的牛人</p>
				<div class="chooseNo choose">
					<img src="img/gou2.png" />
				</div>
			</div>

		</div>
		<button id="sure">确定</button>
	</div>

</div>
<script type="text/javascript">
	$('body').height($(window).height());
	$(window).resize(function() {
		$('body').height($(window).height());

	})
	$(".choose").click(function() {
		$(this).addClass("chooseYes");
		$(this).children("img").attr("src", "img/gou.png");
		$(this).parent().siblings().children(".choose").removeClass("chooseYes");
		$(this).parent().siblings().children(".choose").addClass("chooseNo");
		$(this).parent().siblings().children(".choose").children("img").attr("src", "img/gou2.png");
	})
	$("#sure").click(function() {
		var type

		if($(".chooseYes").siblings("h4").html().indexOf("我是大牛") != -1) {
			window.location.href = "#/binding?0";
		} else {
			window.location.href = "#/binding?1";
		}

	})
		
		$('#bindingout').click(function(){
		$.ajax({
			type: "get",
			url: "/wechat_mt5/user/logout",
			success: function(data) {
				if(data.code == 0) {
					window.location.href = "#/";

				}
			}

		})
	})

	//	console.log($(this).children("img"))
</script>